﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Qiang.Data;

namespace Qiang.Styles
{
    public class ShapeFilter
    {

        #region 初始化


        public ShapeFilter(IShapeList shapes,ShapeState state)
        {
            InitializeStates(shapes, state);
        }


        public ShapeFilter(Dictionary<IShape, ShapeState> states)
        {
            _vectorStates = states;
        }


        void InitializeStates(IShapeList shapes, ShapeState state)
        {
            _vectorStates = new Dictionary<IShape, ShapeState>();
            foreach (IShape shp in shapes)
            {
                _vectorStates.Add(shp, state);
            }
        }

        #endregion


        #region 属性

        
        Dictionary<IShape, ShapeState> _vectorStates;

        /// <summary>
        /// 
        /// </summary>
        public Dictionary<IShape, ShapeState> VectorStates
        {
            get { return _vectorStates; }            
        }


        #endregion




    }
}
